package com.ctg.behavior.calc.impala.builder;

import org.springframework.stereotype.Component;

import com.ctg.behavior.calc.impala.report.CtCalcRestrictMeasureReport;
import com.ctg.behavior.common.calc.CtCalcRestrictMeasure;

@Component
public class CtCalcRestrictMeasureReportBuilder {

	public CtCalcRestrictMeasureReport doBuilder(CtCalcRestrictMeasure oneMeasure, String appId) {
		CtCalcRestrictMeasureReport report = new CtCalcRestrictMeasureReport();
		
		report.setAppId(appId);
		
		report.setAggregator(oneMeasure.getAggregator());
		report.setEventId(oneMeasure.getEventId());
		report.setField(oneMeasure.getField());
		report.setFilter(oneMeasure.getFilter());
		report.setName(oneMeasure.getName());
		report.setRestrict(oneMeasure.getRestrict());
		report.setTimeRestrict(oneMeasure.getTimeRestrict());
		
		return report;
	}
	
}
